#!/bin/sh
cd `pwd`

STR=`ps -ef | grep java | grep "com.perfma.xtest.WMain" | awk  -F ' '  '{print $2}'`
if [ ! -z "$STR" ]; then
    kill -9 $STR > /dev/null 2>&1
    sleep 2
else
  echo "没有Java进程"
fi